package com.zhuiyun.educations.api.coursefile.service;

import com.zhuiyun.educations.api.coursefile.entity.CourseFile;
import com.zhuiyun.educations.common.response.CommonResult;
import com.zhuiyun.educations.util.pageUtil.PageRequest;
import org.springframework.web.multipart.MultipartFile;

public interface CourseFileService {
    /**
     * @Author ys
     * @Description TODO 分页查询
     * @Date 2023/6/26 14:09
     * @Return CommonResult
     * @param
     */
    CommonResult getCourseFile(PageRequest pageRequest);
    /**
     * @Author ys
     * @Description TODO 新增
     * @Date 2023/6/26 14:09
     * @Return CommonResult
     * @param
     */
    CommonResult addCourseFile(CourseFile courseFile, MultipartFile file, String projectName);
    /**
     * @Author ys
     * @Description TODO 修改
     * @Date 2023/6/26 14:09
     * @Return CommonResult
     * @param
     */
    CommonResult updateCourseFile(CourseFile courseFile);
    /**
     * @Author ys
     * @Description TODO 章节下拉
     * @Date 2023/6/26 14:09
     * @Return CommonResult
     * @param
     */
    CommonResult fileSelect();
    /**
     * @Author ys
     * @Description TODO 逻辑删除
     * @Date 2023/6/26 14:09
     * @Return CommonResult
     * @param
     */
    CommonResult deleteCourseFileById(int id);
}
